class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books do |t|
      t.string :title
      t.text :description
      t.string :author
      t.string :code
      t.integer :quantity
      t.integer :current_quantity
      t.integer :category_id
      t.float :price
      t.text :image_url
      t.integer :numviewed
      t.integer :numborrowed

      t.timestamps
    end
  end
end
